import React from 'react';
import './index.less';
import { Button, Result } from 'antd';
import { history } from 'umi';

export default class NoFoundPage extends React.Component {
  render() {
    return (
      <Result
        status={404}
        title="404"
        subTitle="Sorry, the page you visited does not exist."
        extra={
          <Button type="primary" onClick={() => history.push('/blog')}>
            返回首页
          </Button>
        }
      />
    );
  }
}
